
Page({

  /**
   * 页面的初始数据
   */
  data: {
    currentType: 1,
    type: {
      1: { name: '攻击', color: '#F37474' },
      2: { name: '法术', color: '#71D0B0' },
      3: { name: '防御', color: '#B183FF' },
      4: { name: '移动', color: '#FFD459' },
      5: { name: '打野', color: '#60A4FF' },
      6: { name: '辅助', color: '#FF89C3' }
    }
  },
 
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var name=options.name;
    var img=options.img;
    var detail=options.detail.split(",");
    var type=options.type;
    this.setData({
      item_img:img,
      item_name:name,
      des:detail,
      currentType:type
    });
  },

  onShareAppMessage: function () {
    return {
      title: '【装备详情】' + this.data.equip.item_name,
      path: 'pages/equip_detail/equip_detail?id=' + this.data.equip_id
    }
  },


 
})